package cn.iocoder.yudao.module.handguard.controller.admin.housingresource.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;

import com.alibaba.excel.annotation.ExcelProperty;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;


/**
 * 房源信息 Excel VO
 *
 * @author 芋道源码
 */
@Data
public class HousingResourceExcelVO {

//    @ExcelProperty("ID")
//    private Long id;

    @ExcelProperty("标题")
    private String title;

    @ExcelProperty("面积")
    private String area;

    @ExcelProperty("房型")
    private String houseType;

    @ExcelProperty(value = "拍卖方式：一拍、二拍、变卖、其他", converter = DictConvert.class)
    @DictFormat("auction_method") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private String auctionNumber;

    @ExcelProperty("市场价")
    private String marketPrice;

    @ExcelProperty("市场单价")
    private String marketUnitPrice;

    @ExcelProperty("捡漏空间价格")
    private String pickupSpacePrice;

    @ExcelProperty("起拍价")
    private String startingPrice;

    @ExcelProperty("起拍单价")
    private String startingOddPrice;

    @ExcelProperty("折扣")
    private String discount;

    @ExcelProperty("小区名称")
    private String cellName;

    @ExcelProperty("梯步：电梯、楼梯")
    private String step;

    @ExcelProperty("楼层")
    private String floor;

    @ExcelProperty("物业类型")
    private String propertyType;

    @ExcelProperty("拍卖次数")
    private Integer numberOfAuctions;

    @ExcelProperty("保证金")
    private String earnestMoney;

    @ExcelProperty("加价幅度")
    private String bidIncrement;

    @ExcelProperty("折扣率")
    private String discountRate;

    @ExcelProperty("建筑年份")
    private String architectureYear;

    @ExcelProperty("装修情况")
    private String decorateSituation;

    @ExcelProperty("省市区")
    private String address;

//    @ExcelProperty("区")
//    private String district;

    @ExcelProperty("经度")
    private String longitude;

    @ExcelProperty("纬度")
    private String latitude;

//    @ExcelProperty("图片详情")
//    private String imagesList;

    private Integer auctionState;

    @ExcelProperty("拍卖状态")
    private String auctionStateStr;

    @ExcelProperty("起拍时间")
    private String auctionTime;


    @ExcelProperty("新增时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime createTime;

}
